<?php 
/*include  "./../protected.php"; /*Valida el inico de sesion*/
error_reporting(0);
?>
<!DOCTYPE html>
<head>
 <link type="image/x-icon" href="../imagenes/pe.icon" rel="shortcut icon" /> 
	 <link type="image/x-icon" href="../../imagenes/pe.icon" rel="icon" />
<title>Formularios | BETRANS</title> 
<link href="css/ceGrid.css" rel="stylesheet" type="text/css">
<link href="css/main.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
</head>

<button class ="btn" id= "atras" type="button" onclick="javascript: location.href='../Menu.php'">Regresar</button>


<body>
<div id="content">
<h2 align="center">Modulo Gestion de Formularios</h2><br/>
<?php

$host = "localhost";
$usuario ="root";
$clave = "root";

require 'dg/ceSQL.php';
require 'dg/ceGrid.php';

$dbase = new ceMySQLAdap($host,$usuario,$clave,"betrans");

$dg = new ceDataGrid($dbase); 

$dg->setQuery("BT06IDEN,BT06NOPE,BT06APE1,BT06APE2,BT06PARE","grupoFamiliar()");

$dg->allowFilters();

$dg->showCreateButton("href='FormularioPag1.php'", ceDataGrid::TYPE_ONCLICK, 'Agregar');
$dg->setResultsPerPage(10);

$dg->setColumnHeader('BT13COFO', 'Codígo de Formulario');
$dg->setColumnHeader('BT13FECR', 'Fecha de Creación');
$dg->setColumnHeader('BT13IDES', 'Identificación de Estudiante');
$dg->setColumnHeader('Nombre', 'Nombre de Estudiante');


$dg->addStandardControl(ceDataGrid::STDCTRL_EDIT, "href='FormularioPag1Back.php?cedest=%BT13IDES%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_DELETE, "href='delete.php?id=%BT13COFO%'");

$dg->showReset("Refrescar");
$dg->printTable();
?>
</div>
</body>
</html>